/** 
 * 文 件 名:Food.java
 * Copyright (C) 2007-2012:杭州希禾信息技术有限公司 版权所有 
 * 创 建 人:刘绍辉
 * 日    期:2012-3-12 下午12:09:00
 * 修 改 人: 
 * 日   期:
 * 修改描述:
 * 描   述:TODO
 */
package net.seehealth.healthpad.model.foodmanage;

import net.seehealth.healthpad.application.base.BaseModel;


/**
 * @className Food
 * @author 刘绍辉
 * @description 膳食
 * @date 2012-3-14 下午14:09:00
 */
public class Food extends BaseModel {
	/**
	 * 主键ID
	 */
	private Integer nid;
	/**
	 * 唯一编号
	 */
	private String code;
	/**
	 * 膳食名称
	 */
	private String name;
	/**
	 * 所含能量
	 */
	private float kc;
	/**
	 * 说明
	 */
	private String desc;
	/**
	 * 食材类型编码
	 */
	private String typeCode;
	/**
	 * empty constructor
	 */
	public Food (){}
	/**
	 * full constructor
	 * @param nid
	 * @param nCode
	 * @param nName
	 * @param nKC
	 * @param desc
	 * @param nTypeCode
	 */
	public Food(Integer nid, String code, String name, float kc, String desc,
			String typeCode) {
		super();
		this.nid = nid;
		this.code = code;
		this.name = name;
		this.kc = kc;
		this.desc = desc;
		this.typeCode = typeCode;
	}
	@Override
	public String toString() {
		return "Food [nid=" + nid + ", code=" + code + ", name=" + name
				+ ", kc=" + kc + ", desc=" + desc + ", typeCode=" + typeCode
				+ "]";
	}
	public Integer getNid() {
		return nid;
	}
	public void setNid(Integer nid) {
		this.nid = nid;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public float getKc() {
		return kc;
	}
	public void setKc(float kc) {
		this.kc = kc;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getTypeCode() {
		return typeCode;
	}
	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}
}
